package com.example.anliku.mapper;

import com.example.anliku.entity.Clazz;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ClazzMapper {
    int deleteByPrimaryKey(Integer clazzId);

    int insert(Clazz record);

    int insertSelective(Clazz record);

    Clazz selectByPrimaryKey(Integer clazzId);

    int updateByPrimaryKeySelective(Clazz record);

    int updateByPrimaryKey(Clazz record);

    int updateBatch(List<Clazz> list);

    int batchInsert(@Param("list") List<Clazz> list);

    List<Clazz> selectAll();

    int insertList(@Param("list") List<Clazz> list);

    List<String> selectClazzNameByClazzId(@Param("clazzId") Integer clazzId);

    List<Clazz> selectAllByClazzName(@Param("clazzName")String clazzName);


}